package principle.factory.simple;

/**
 * @author malguy-wang sir
 * @create ${year}-${month}-${day}-${time}
 */
public abstract class pizza {
    protected String name;//披萨名字,被 protected 修饰的成员对于本包和其子类可见
    public abstract void prepare(String name);//准备原材料，不同披萨原材料不一样，所以做成抽象方法
    public void bake(){
        System.out.println(name+".back");
    }
    public void cut(){
        System.out.println(name+".cut");
    }
    public void box(){
        System.out.println(name+".box");
    }
}
